package com.atom.common.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.atom.common.CommonConstant;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * Title: CommentDO
 * Description: 审批意见表
 * @author WEWE
 * @date 2016年6月21日 上午9:48:26
 * @version 1.0
 */
@Entity
@Table(name="atm_common_comment") 
public class CommentDO implements Serializable {
  
  /** serialVersionUID*/
  private static final long serialVersionUID = 1L;

  /** ID*/
  @Id
  @GeneratedValue(strategy = GenerationType.AUTO)    
  @Column(name="ID")
  private int id;
  
  /** 流程ID*/
  @Column(name="MAIN_PROC_INS_ID")
  private String processInstanceId;
  
  /** 任务ID*/
  @Column(name="TASK_ID")
  private String taskId;
  
  /** 任务定义Key*/
  @Column(name="TASK_DEF_KEY")
  private String taskDefinitionKey;
  
  /** 审批人*/
  @Column(name="C_USER")
  private String commentUser;
  @Column(name="C_USER_T")
  private String commentUserText;
  
  /** 审批人所属部处*/
  @Column(name="C_USER_ORG")
  private String commentUserOrg;
  
  /** 意见类型*/
  @Column(name="C_TYPE")
  private int commentType;
  
  /** 审批时间*/
  @Column(name="C_D_COMMENT")
  @JsonFormat(pattern = CommonConstant.DATETIME_PATTERN, timezone = CommonConstant.TIMEZONE)
  private Date commentTime;
  
  /** 审批意见*/
  @Column(name="C_TEXT")
  private String commentText;
  
  /** 发起人*/
  @Column(name="C_CREATOR")
  private String commentCreator;

  public CommentDO() {
    super();
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getProcessInstanceId() {
    return processInstanceId;
  }

  public void setProcessInstanceId(String processInstanceId) {
    this.processInstanceId = processInstanceId;
  }

  public String getTaskId() {
    return taskId;
  }

  public void setTaskId(String taskId) {
    this.taskId = taskId;
  }

  public String getTaskDefinitionKey() {
    return taskDefinitionKey;
  }

  public void setTaskDefinitionKey(String taskDefinitionKey) {
    this.taskDefinitionKey = taskDefinitionKey;
  }

  public String getCommentUser() {
    return commentUser;
  }

  public void setCommentUser(String commentUser) {
    this.commentUser = commentUser;
  }

  public String getCommentUserOrg() {
    return commentUserOrg;
  }

  public void setCommentUserOrg(String commentUserOrg) {
    this.commentUserOrg = commentUserOrg;
  }

  public int getCommentType() {
    return commentType;
  }

  public void setCommentType(int commentType) {
    this.commentType = commentType;
  }

  public Date getCommentTime() {
    return commentTime;
  }

  public void setCommentTime(Date commentTime) {
    this.commentTime = commentTime;
  }

  public String getCommentText() {
    return commentText;
  }

  public void setCommentText(String commentText) {
    this.commentText = commentText;
  }

  public String getCommentCreator() {
    return commentCreator;
  }

  public void setCommentCreator(String commentCreator) {
    this.commentCreator = commentCreator;
  }
  
  public String getCommentUserText() {
    return commentUserText;
  }

  public void setCommentUserText(String commentUserText) {
    this.commentUserText = commentUserText;
  }
  

}
